<?php
/**
 * @author Amissah Gideon<kuulmek@yahoo.com>
 * @access public
 * @version 1.0
 */
?>
<script type="text/javascript">
    var gbl_sale_filter = [
        {name:'All',value:'all'},
        {name:'Made Sales',value:'made_sale'},
        {name:'No Sales',value:'no_sale'}
    ]
</script>
<!-- Main content -->
<section role="main" id="main">

    <!-- Header -->
    <?php
        echo $this->element('page_header');
        echo $this->element('navigations/proforma_navbar');
    ?>

    <div class="with-padding">
        <div class="columns">
            <div class="new-row-mobile twelve-columns six-columns-tablet twelve-columns-mobile">

                <h3 class="thin underline">Proforma Details</h3>

                <table id="flex" style="display:none;"></table>

                <div style="display: none;">
                    <div id="form-window" style="margin: 20px 5px 5px 5px;">
                        <fieldset class="fieldset">
                            <legend class="legend">Info</legend>

                            <p class="button-height inline-label">
                                <label class="label"><?php echo __('Date :');?></label>
                                <span class="proforma_date value"></span>
                            </p>
                            <p class="button-height inline-label">
                                <label class="label"><?php echo __('Proforma Number :');?></label>
                                <span class="proforma_number value"></span>
                            </p>
                            <p class="button-height inline-label">
                                <label class="label"><?php echo __('Customer:');?></label>
                                <span class="customer value"></span>
                            </p>
                            <p class="button-height inline-label">
                                <label class="label"><?php echo __('Created By. :');?></label>
                                <span class="created_by value"></span>
                            </p>
                            <p class="button-height inline-label">
                                <label class="label"><?php echo __('Items :');?></label>
                                <span class="proforma_items value"></span>
                            </p>
                            <p class="button-height inline-label">
                                <label class="label"><?php echo __('Total Cost :');?></label>
                                <span class="total_cost value"></span>
                            </p>
                            <p class="button-height inline-label">
                                <label class="label">&nbsp;</label>
                                <button type="reset" class="button" id="credit-close-btn">
                                    <span class="button-icon anthracite-gradient"><span class="icon-cross-round"></span></span>
                                    Close
                                </button>
                            </p>
                        </fieldset>
                    </div>
                </div>

            </div>
        </div>
    </div>

</section>
<!-- End main content -->

<!-- Side tabs shortcuts -->
<?php echo $this->element('side_tabs_shortcuts'); ?>
<!-- Sidebar/drop-down menu -->
<?php echo $this->element('right_side_infos'); ?>


<!-- Users URL -->
<input type="hidden" id="table-url" value="<?php echo $this->Html->url(array('controller' => 'Proforma', 'action' => 'get')); ?>" />
<input type="hidden" id="add-edit-url" value="<?php echo $this->Html->url(array('controller' => 'Proforma', 'action' => 'add')); ?>" />
<input type="hidden" id="load-user-url" value="<?php echo $this->Html->url(array('controller' => 'Proforma', 'action' => 'load')); ?>" />
<input type="hidden" id="delete-url" value="<?php echo $this->Html->url(array('controller' => 'Proforma', 'action' => 'delete_')); ?>" />
<input type="hidden" id="print-invoice-url" value="<?php echo $this->Html->url(array('controller' => 'Proforma', 'action' => 'print_proforma_invoice')); ?>" />



<?php
echo $this->Html->script('setup.js');

/** Template functions **/
echo $this->Html->script('developr.input.js');
echo $this->Html->script('developr.message.js');
echo $this->Html->script('developr.modal.js');
echo $this->Html->script('developr.navigable.js');
echo $this->Html->script('developr.notify.js');
echo $this->Html->script('developr.scroll.js');
echo $this->Html->script('developr.progress-slider.js');
echo $this->Html->script('developr.tooltip.js');
echo $this->Html->script('developr.confirm.js');
echo $this->Html->script('developr.agenda.js');
echo $this->Html->script('developr.tabs.js');

echo $this->Html->script('libs/tinycon.min.js');
echo $this->Html->script('jquery.thfloat-0.3.min.js');
echo $this->Html->script('custom-scripts/manage_proforma.js');
?>